<?php

use Illuminate\Database\Seeder;
use App\Models\StoreGoods;

class StoreGoodsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        for($i =1;$i<=20;$i++){
            StoreGoods::create([
                'goods_name' => '商品'.$i,
//                'goods_img' => 'bail|required|image|max:5120|mimes:jpg,jpeg,png,bmp,gif,svg',
                'goods_spec' => '规格为'.$i."公分",
                'goods_number' => rand(0,50),
                'goods_price' => rand(50, 100),
                'goods_type' => rand(0, 1),
                'level_id' => 1,
                'is_hot' => rand(0, 1),
                'hotel_id' => 1,
                'goods_name' => '商品'.$i,
            ]);
        }
    }
}
